#!/usr/bin/env python

import os
from config.url import urls
import controllers.db
import web

app = web.application(urls,globals())

DB = r'static/db/content'

if __name__=='__main__':
    if not os.path.isfile(DB):
        controllers.db.CreateDB()
    app.run()
